
#include "Rubik.h"
#include "ansicolor.h"
using namespace std;


int main()
{
	Rubik rubik;
	//ManuallySetRubik(rubik, true);
//	string inipos="WWWWWWWWWGGGGGGGGGRRRRRRRRRBBBBBBBBBOOOOOOOOOYYYYYYYYY";
//	StringToRubik(rubik,inipos);
//	DrawRubik(rubik);

	//initscr();
	//	clear();
	//		noecho();
//				cbreak();
	StringToRubik(rubik,"wwwwwwwwwyyyyyyyyyrrrrrrrrrooooooooobbbbbbbbbggggggggg");
	
	char ch;
	system("clear");
	DrawRubik(rubik);
	OnHelp();
	
	while((ch=mygetch())!=-1)
	{
		TranslateMove(rubik,ch);
		if(ch!='/' && ch!='?' )
		{
			system("clear");
			DrawRubik(rubik,ch);
		}
	}


//	TurnTotal(rubik, U);
//	DrawRubik(rubik);
	return 0;
}
